package app;

import common.utils.RedisUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
public class Mailserverapp {
    /**
     * 手动取redis数据的工具类
     *
     * @return
     */
    @Bean
    public RedisUtils redisUtils() {
        return new RedisUtils();
    }
    public static void main(String[] args) {
        SpringApplication.run(Mailserverapp.class, args);
    }
}
